﻿/* 2013/1/6 */

namespace Cosmos.Media
{
    class WmaInfo
    {
        /*
        public string[] getSongInfoFromWma(string FileName)
        {
            string[] wmaFileStruct = new string[3];
            MP3File mp3 = new MP3File();
            //create shell instance
            Shell32.Shell shell = new Shell32.ShellClass();
            //set the namespace to file path
            Shell32.Folder folder = shell.NameSpace(FileName.Substring(0, FileName.LastIndexOf("\\")));
            //get ahandle to the file
            Shell32.FolderItem folderItem = folder.ParseName(FileName.Substring(FileName.LastIndexOf("\\") + 1));
            //did we get a handle ?


            wmaFileStruct[0] = folder.GetDetailsOf(folderItem, 10);  //歌曲名称
            wmaFileStruct[1] = folder.GetDetailsOf(folderItem, 9);   //歌手名称
            wmaFileStruct[2] = folder.GetDetailsOf(folderItem, 21);  //播放时间

            return wmaFileStruct;
        }*/
    }
}
